﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E33 RID: 3635
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RevcMsgScNotify : IMessage<RevcMsgScNotify>, IMessage, IEquatable<RevcMsgScNotify>, IDeepCloneable<RevcMsgScNotify>, IBufferMessage
	{
		// Token: 0x17002E27 RID: 11815
		// (get) Token: 0x0600A321 RID: 41761 RVA: 0x001B640F File Offset: 0x001B460F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RevcMsgScNotify> Parser
		{
			get
			{
				return RevcMsgScNotify._parser;
			}
		}

		// Token: 0x17002E28 RID: 11816
		// (get) Token: 0x0600A322 RID: 41762 RVA: 0x001B6416 File Offset: 0x001B4616
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RevcMsgScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002E29 RID: 11817
		// (get) Token: 0x0600A323 RID: 41763 RVA: 0x001B6428 File Offset: 0x001B4628
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RevcMsgScNotify.Descriptor;
			}
		}

		// Token: 0x0600A324 RID: 41764 RVA: 0x001B642F File Offset: 0x001B462F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RevcMsgScNotify()
		{
		}

		// Token: 0x0600A325 RID: 41765 RVA: 0x001B6444 File Offset: 0x001B4644
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RevcMsgScNotify(RevcMsgScNotify other) : this()
		{
			this.messageType_ = other.messageType_;
			this.messageText_ = other.messageText_;
			this.extraId_ = other.extraId_;
			this.sourceUid_ = other.sourceUid_;
			this.oHINLDBELBA_ = ((other.oHINLDBELBA_ != null) ? other.oHINLDBELBA_.Clone() : null);
			this.targetUid_ = other.targetUid_;
			this.chatType_ = other.chatType_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A326 RID: 41766 RVA: 0x001B64CC File Offset: 0x001B46CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RevcMsgScNotify Clone()
		{
			return new RevcMsgScNotify(this);
		}

		// Token: 0x17002E2A RID: 11818
		// (get) Token: 0x0600A327 RID: 41767 RVA: 0x001B64D4 File Offset: 0x001B46D4
		// (set) Token: 0x0600A328 RID: 41768 RVA: 0x001B64DC File Offset: 0x001B46DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MsgType MessageType
		{
			get
			{
				return this.messageType_;
			}
			set
			{
				this.messageType_ = value;
			}
		}

		// Token: 0x17002E2B RID: 11819
		// (get) Token: 0x0600A329 RID: 41769 RVA: 0x001B64E5 File Offset: 0x001B46E5
		// (set) Token: 0x0600A32A RID: 41770 RVA: 0x001B64ED File Offset: 0x001B46ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string MessageText
		{
			get
			{
				return this.messageText_;
			}
			set
			{
				this.messageText_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x17002E2C RID: 11820
		// (get) Token: 0x0600A32B RID: 41771 RVA: 0x001B6500 File Offset: 0x001B4700
		// (set) Token: 0x0600A32C RID: 41772 RVA: 0x001B6508 File Offset: 0x001B4708
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ExtraId
		{
			get
			{
				return this.extraId_;
			}
			set
			{
				this.extraId_ = value;
			}
		}

		// Token: 0x17002E2D RID: 11821
		// (get) Token: 0x0600A32D RID: 41773 RVA: 0x001B6511 File Offset: 0x001B4711
		// (set) Token: 0x0600A32E RID: 41774 RVA: 0x001B6519 File Offset: 0x001B4719
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SourceUid
		{
			get
			{
				return this.sourceUid_;
			}
			set
			{
				this.sourceUid_ = value;
			}
		}

		// Token: 0x17002E2E RID: 11822
		// (get) Token: 0x0600A32F RID: 41775 RVA: 0x001B6522 File Offset: 0x001B4722
		// (set) Token: 0x0600A330 RID: 41776 RVA: 0x001B652A File Offset: 0x001B472A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MNMEBDFAJJP OHINLDBELBA
		{
			get
			{
				return this.oHINLDBELBA_;
			}
			set
			{
				this.oHINLDBELBA_ = value;
			}
		}

		// Token: 0x17002E2F RID: 11823
		// (get) Token: 0x0600A331 RID: 41777 RVA: 0x001B6533 File Offset: 0x001B4733
		// (set) Token: 0x0600A332 RID: 41778 RVA: 0x001B653B File Offset: 0x001B473B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TargetUid
		{
			get
			{
				return this.targetUid_;
			}
			set
			{
				this.targetUid_ = value;
			}
		}

		// Token: 0x17002E30 RID: 11824
		// (get) Token: 0x0600A333 RID: 41779 RVA: 0x001B6544 File Offset: 0x001B4744
		// (set) Token: 0x0600A334 RID: 41780 RVA: 0x001B654C File Offset: 0x001B474C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChatType ChatType
		{
			get
			{
				return this.chatType_;
			}
			set
			{
				this.chatType_ = value;
			}
		}

		// Token: 0x0600A335 RID: 41781 RVA: 0x001B6555 File Offset: 0x001B4755
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RevcMsgScNotify);
		}

		// Token: 0x0600A336 RID: 41782 RVA: 0x001B6564 File Offset: 0x001B4764
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RevcMsgScNotify other)
		{
			return other != null && (other == this || (this.MessageType == other.MessageType && !(this.MessageText != other.MessageText) && this.ExtraId == other.ExtraId && this.SourceUid == other.SourceUid && object.Equals(this.OHINLDBELBA, other.OHINLDBELBA) && this.TargetUid == other.TargetUid && this.ChatType == other.ChatType && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A337 RID: 41783 RVA: 0x001B6608 File Offset: 0x001B4808
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MessageType != MsgType.None)
			{
				num ^= this.MessageType.GetHashCode();
			}
			if (this.MessageText.Length != 0)
			{
				num ^= this.MessageText.GetHashCode();
			}
			if (this.ExtraId != 0U)
			{
				num ^= this.ExtraId.GetHashCode();
			}
			if (this.SourceUid != 0U)
			{
				num ^= this.SourceUid.GetHashCode();
			}
			if (this.oHINLDBELBA_ != null)
			{
				num ^= this.OHINLDBELBA.GetHashCode();
			}
			if (this.TargetUid != 0U)
			{
				num ^= this.TargetUid.GetHashCode();
			}
			if (this.ChatType != ChatType.None)
			{
				num ^= this.ChatType.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A338 RID: 41784 RVA: 0x001B66E8 File Offset: 0x001B48E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A339 RID: 41785 RVA: 0x001B66F0 File Offset: 0x001B48F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A33A RID: 41786 RVA: 0x001B66FC File Offset: 0x001B48FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ExtraId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.ExtraId);
			}
			if (this.MessageType != MsgType.None)
			{
				output.WriteRawTag(24);
				output.WriteEnum((int)this.MessageType);
			}
			if (this.MessageText.Length != 0)
			{
				output.WriteRawTag(34);
				output.WriteString(this.MessageText);
			}
			if (this.ChatType != ChatType.None)
			{
				output.WriteRawTag(40);
				output.WriteEnum((int)this.ChatType);
			}
			if (this.oHINLDBELBA_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.OHINLDBELBA);
			}
			if (this.TargetUid != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.TargetUid);
			}
			if (this.SourceUid != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.SourceUid);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A33B RID: 41787 RVA: 0x001B67E8 File Offset: 0x001B49E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MessageType != MsgType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.MessageType);
			}
			if (this.MessageText.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.MessageText);
			}
			if (this.ExtraId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ExtraId);
			}
			if (this.SourceUid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SourceUid);
			}
			if (this.oHINLDBELBA_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.OHINLDBELBA);
			}
			if (this.TargetUid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TargetUid);
			}
			if (this.ChatType != ChatType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.ChatType);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A33C RID: 41788 RVA: 0x001B68BC File Offset: 0x001B4ABC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RevcMsgScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MessageType != MsgType.None)
			{
				this.MessageType = other.MessageType;
			}
			if (other.MessageText.Length != 0)
			{
				this.MessageText = other.MessageText;
			}
			if (other.ExtraId != 0U)
			{
				this.ExtraId = other.ExtraId;
			}
			if (other.SourceUid != 0U)
			{
				this.SourceUid = other.SourceUid;
			}
			if (other.oHINLDBELBA_ != null)
			{
				if (this.oHINLDBELBA_ == null)
				{
					this.OHINLDBELBA = new MNMEBDFAJJP();
				}
				this.OHINLDBELBA.MergeFrom(other.OHINLDBELBA);
			}
			if (other.TargetUid != 0U)
			{
				this.TargetUid = other.TargetUid;
			}
			if (other.ChatType != ChatType.None)
			{
				this.ChatType = other.ChatType;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A33D RID: 41789 RVA: 0x001B698D File Offset: 0x001B4B8D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A33E RID: 41790 RVA: 0x001B6998 File Offset: 0x001B4B98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 34U)
				{
					if (num == 16U)
					{
						this.ExtraId = input.ReadUInt32();
						continue;
					}
					if (num == 24U)
					{
						this.MessageType = (MsgType)input.ReadEnum();
						continue;
					}
					if (num == 34U)
					{
						this.MessageText = input.ReadString();
						continue;
					}
				}
				else if (num <= 66U)
				{
					if (num == 40U)
					{
						this.ChatType = (ChatType)input.ReadEnum();
						continue;
					}
					if (num == 66U)
					{
						if (this.oHINLDBELBA_ == null)
						{
							this.OHINLDBELBA = new MNMEBDFAJJP();
						}
						input.ReadMessage(this.OHINLDBELBA);
						continue;
					}
				}
				else
				{
					if (num == 72U)
					{
						this.TargetUid = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.SourceUid = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04004273 RID: 17011
		private static readonly MessageParser<RevcMsgScNotify> _parser = new MessageParser<RevcMsgScNotify>(() => new RevcMsgScNotify());

		// Token: 0x04004274 RID: 17012
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004275 RID: 17013
		public const int MessageTypeFieldNumber = 3;

		// Token: 0x04004276 RID: 17014
		private MsgType messageType_;

		// Token: 0x04004277 RID: 17015
		public const int MessageTextFieldNumber = 4;

		// Token: 0x04004278 RID: 17016
		private string messageText_ = "";

		// Token: 0x04004279 RID: 17017
		public const int ExtraIdFieldNumber = 2;

		// Token: 0x0400427A RID: 17018
		private uint extraId_;

		// Token: 0x0400427B RID: 17019
		public const int SourceUidFieldNumber = 12;

		// Token: 0x0400427C RID: 17020
		private uint sourceUid_;

		// Token: 0x0400427D RID: 17021
		public const int OHINLDBELBAFieldNumber = 8;

		// Token: 0x0400427E RID: 17022
		private MNMEBDFAJJP oHINLDBELBA_;

		// Token: 0x0400427F RID: 17023
		public const int TargetUidFieldNumber = 9;

		// Token: 0x04004280 RID: 17024
		private uint targetUid_;

		// Token: 0x04004281 RID: 17025
		public const int ChatTypeFieldNumber = 5;

		// Token: 0x04004282 RID: 17026
		private ChatType chatType_;
	}
}
